package com.danieldura.highrise.events
{
	import com.danieldura.highrise.requests.HighriseRequestToken;
	
	import flash.events.Event;

	public class HighriseRequestEvent extends Event
	{
		public static const RESULT:String = "result";
		public static const FAULT:String = "fault";

		private var _data:*;
		private var _token:HighriseRequestToken;

		public function HighriseRequestEvent( type:String, data:*, token:HighriseRequestToken )
		{
			super( type );
			
			_data = data;
			_token = token;
		}
		
		public function get data():*
		{
			return _data;
		}
		
		public function get token():*
		{
			return _token;
		}
		
	}
}